package com.jsyl.lwbk.business.mapper;

import com.jsyl.lwbk.business.dto.QuestionDTO;
import com.jsyl.lwbk.business.dto.education.QuestionListDTO;
import com.jsyl.lwbk.business.vo.EvaluateQuestionVO;
import com.jsyl.lwbk.business.domain.Question;

import java.util.List;

public interface QuestionMapper {
    int insert(Question record);

    Question selectById(Long id);

    int updateById(Question record);

    /**
     * 查询所有有效题目
     * @return
     */
    List<Question> selectAll();

    List<QuestionDTO> selectAllQuestion();

    List<Integer> findProjectModuleCount();

    /**
     * 查询所有有效题目并且带上测评题目类型
     * @return
     */
    List<EvaluateQuestionVO> selectEvaluateQuestionAll();

    List<Question> selectList(QuestionListDTO questionListDTO);
    List<Question> listwithoutreporttype(QuestionListDTO questionListDTO);

}